find value in object c#

35

find a value in list of objects in c# -

var item = TextPool.FirstOrDefault(o => o.Name == "test");
if (item != null)
       item.value = "Value";

find value in object c# -

var item = TextPool.FirstOrDefault(o => o.Name == "test");
if (item != null)
       item.value = "Value";

Comments

Submit
0 Comments